package fr.vvins.core.services;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;

import fr.vvins.core.cms.page.PageException;
import fr.vvins.core.cms.page.dto.PageDto;
import fr.vvins.core.common.TechnicalException;


public interface PageService {
	
	@GET
	@Path("/id/{id}")
	@Produces("application/json")
	public PageDto getPage(@PathParam("id")Integer id) throws TechnicalException, PageException; 
	
	@GET
	@Path("/name/{name}")
	@Produces("application/json")
	public PageDto getPage(@PathParam("name")String name) throws TechnicalException, PageException;

	
	@GET
	@Path("/name/{name}/{content}")
	@Produces("application/json")
	public PageDto getPageByContent(@PathParam("name")String name, @PathParam("content")String content) throws TechnicalException, PageException;

}
